package com.sun.umbrella.oauth2;

import lombok.Getter;
import lombok.Setter;
import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author Jay
 * @version v1.0
 * @description token信息
 * @date 2017-11-24 15:35
 */
public class Oauth2Token implements AuthenticationToken {

    @Setter
    @Getter
    private String authCode;

    @Setter
    private String principal;

    public Oauth2Token(String authCode) {
        this.authCode = authCode;
    }

    @Override
    public String getPrincipal() {
        return principal;
    }

    @Override
    public Object getCredentials() {
        return authCode;
    }
}
